<%@ include file="/common/taglibs.jsp"%>
<table>
	<tr>
		<td><div class="booksDetailPaging"></div></td>
	</tr>
	<tr>
		<td>
		<div class="summary-booklist ui-widget">
			<h1 class="ui-helper-reset ui-widget-header ui-corner-top booklist-header">
				<c:out value="${headerMsg}"/>
			</h1>
			<div class="ui-widget-content ui-corner-bottom">
				<table>
				<c:forEach items="${books}" var="book">
					<tr style="border-bottom:1px solid #eeeeee;">
						<td>
						<table>
							<tr>
								<td width="160px" rowspan="4"><a href="<spring:url value="/book/details.html">
								<spring:param name="bookId" value="${book.id}"/>
								</spring:url>"><img class="book-image" src="${book.image}"/></a></td>
								<td><a href="<spring:url value="/book/details.html">
								<spring:param name="bookId" value="${book.id}"/>
								</spring:url>"><c:out value="${book.name}"/></a></td>
							</tr>
							<tr>
								<td><c:out value="${book.locale}"/><spring:message code="details.comma"/><c:forEach items="${book.authors}" var="author">
									<c:out value="${author.name}"/><spring:message code="details.comma"/>
								</c:forEach><c:out value="${book.publisher.userAccount.name}"/><spring:message code="details.comma"/><spring:message code="details.publishDate"/>: <fmt:formatDate value="${book.publishDate}"/></td>
							</tr>
							<tr>
								<td><font class="book-price"><spring:message code="main.price.sign"/><spring:message code="main.price"/><c:out value="${book.unitPrice}"/></font><spring:message code="details.comma"/><spring:message code="${sf:getInventoryStatusMessageCode(book.inventory.status)}"/></td>
							</tr>
							<tr><td><st:bookDescription text="${book.description}"/></td></tr>
						</table>
						</td>
					</tr>
				</c:forEach>
				</table>
			</div>
		</div>
		</td>
	</tr>
	<tr>
		<td><div class="booksDetailPaging"></div></td>
	</tr>
</table>